package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 消息盒子表
 *
 * @author 16693103420
 * @since 2024-02-04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_message_box")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MessageBoxModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//消息盒子表ID
    private Integer userId;//用户id
    private Integer quiltUserId;//转账人ID
    private String typeName;//1.消息类型
    private Double voucher;//金额
    private String notes;//备注
    private String orderSn;//订单编号
    @TableField(exist = false)
    private String userName;//转账人用户姓名
    @TableField(exist = false)
    private String phone;//转账人手机号
    @TableField(exist = false)
    private String faceUrl;//转账人用户头像
    @TableField(exist = false)
    private String invitationCode;//转账二维码
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Timestamp createTime;
    private Boolean ifRead;//该消息是否已读
    private Timestamp updateTime;


}
